Note in docstrings that these two functions does not preserve the source
authorBjörn Lindqvist <bjourne@gmail.com>
Thu, 16 Aug 2007 22:24:59 +0000 (22:24 +0000)
committerBjörn Lindqvist <bjornl@src.gnome.org>
Thu, 16 Aug 2007 22:24:59 +0000 (22:24 +0000)
2007-08-17  Björn Lindqvist  <bjourne@gmail.com>

        * gdk-pixbuf/gdk-pixbuf-scale.c (gdk_pixbuf_scale):
        * gdk-pixbuf/gdk-pixbuf-util.c (gdk_pixbuf_copy_area):

        Note in docstrings that these two functions does not preserve
        the source rectangle when copying. (#464840).

svn path=/trunk/; revision=18636

gdk-pixbuf/gdk-pixbuf-scale.c
gdk-pixbuf/gdk-pixbuf-util.c

index acfe874cab00f32d22d600c588c6231ce3924bb3..efb07b7ef8b18949de07bbb41ce358d346c3c433 100644 (file)
  * Try to use gdk_pixbuf_scale_simple() first, this function is
  * the industrial-strength power tool you can fall back to if
  * gdk_pixbuf_scale_simple() isn't powerful enough.
+ *
+ * If the source rectangle overlaps the destination rectangle on the
+ * same pixbuf, it will be overwritten during the scaling which
+ * results in rendering artifacts.
  **/
 void
 gdk_pixbuf_scale (const GdkPixbuf *src,
index aeee33dbee28facc5615a09b6e5cc014cfd7d543..1b0de51f355037121969101a1e20ef9a461dab69 100644 (file)
@@ -119,6 +119,10 @@ gdk_pixbuf_add_alpha (const GdkPixbuf *pixbuf,
  *
  * Copies a rectangular area from @src_pixbuf to @dest_pixbuf.  Conversion of
  * pixbuf formats is done automatically.
+ *
+ * If the source rectangle overlaps the destination rectangle on the
+ * same pixbuf, it will be overwritten during the copy operation.
+ * Therefore, you can not use this function to scroll a pixbuf.
  **/
 void
 gdk_pixbuf_copy_area (const GdkPixbuf *src_pixbuf,